package controller

import "server_cluster/http/model"

var (
	Ok                 = &model.CommonRsp{Code: 0}
	ParamError         = &model.CommonRsp{Code: 101, Msg: "参数错误"}
	UnknownError       = &model.CommonRsp{Code: 102, Msg: "未知错误"}
	StopServerError    = &model.CommonRsp{Code: 103, Msg: "服务器已爆满"}
	NotServerStartTime = &model.CommonRsp{Code: 104, Msg: "测试未开启"}

	GmTokenInvalid            = &model.CommonRsp{Code: 10001, Msg: "令牌无效"}
	GmUsernameExist           = &model.CommonRsp{Code: 10002, Msg: "用户名已存在"}
	GmUsernameOrPasswordError = &model.CommonRsp{Code: 10003, Msg: "用户名或密码错误"}
	GmOldPasswordError        = &model.CommonRsp{Code: 10004, Msg: "旧密码错误"}
	GmUsernameFormatError     = &model.CommonRsp{Code: 10005, Msg: "用户名格式错误"}
	GmPasswordFormatError     = &model.CommonRsp{Code: 10006, Msg: "密码格式错误"}
	GmAccountPasswordLength   = &model.CommonRsp{Code: 10007, Msg: "用户名及密码需满足6位字符以上30位字符以下"}

	AccountLoginError = &model.CommonRsp{Code: 20001, Msg: "登录验证失败"}
	RegisterOverLimit = &model.CommonRsp{Code: 20002, Msg: "已超过注册上限"}
)
